Improve pygrub error reporting when opening ext2 fs is not possible
authormip@xencore04.1virtual.net <mip@xencore04.1virtual.net>
Mon, 3 Apr 2006 17:28:54 +0000 (18:28 +0100)
committermip@xencore04.1virtual.net <mip@xencore04.1virtual.net>
Mon, 3 Apr 2006 17:28:54 +0000 (18:28 +0100)
commitea0ce2d4397e1efba60b7f30d422a6649036f266
tree4e45b9ec6f3942b14db09196cd4eae1724eab210
parentd2a5e52e8c2b74eb2e6cc317b1add7941416c90d
Improve pygrub error reporting when opening ext2 fs is not possible

As reported in the thread:
http://lists.xensource.com/archives/html/xen-users/2006-03/msg00721.html,
pygrub does not open ext2 file systems in partitioned images or sub
partitions on e.g. CentOS/RHEL 4, because e2fsprogs ext2fs_open does not
support an offset into the file to be opened.

With this patch, the error is correctly reported instead of a generic
"unable to open file" (and leaving the user searching in the dark).

Signed-off-by: Michael Paesold <mpaesold@gmx.at>
tools/pygrub/src/fsys/ext2/ext2module.c